import React, { Component } from 'react';

class View extends Component {

    oParent(){
        this.props.callback('test内容');
    }
    render(){
        return(
            <div>
                <input onClick={()=>{this.oParent()}} type="button" value="点击"/>
            </div>
        )
    }
}
export default View;
